package oo2;

import java.util.Scanner;

public class JiaowuTest {

	public static void main(String[] args) {
		Jiaowuchu j = new Jiaowuchu();
		j.wname = "宇宙学院教务处";
		Scanner in = new Scanner(System.in);
		System.out.println("你今年多大了：");
		int myage = in.nextInt();
		System.out.println("今年你" + myage + "岁了");
		j.inc(myage);
		System.out.println("明年你" + myage + "岁了");

		Student st = new Student();
		System.out.println("输入学生的姓名和年龄以及学号：");
		st.name = in.next();
		st.age = in.nextInt();
		st.no = in.next();
		System.out.println(">>>>>今年的情况>>>>>");
		st.show();
		System.out.println(">>>>>>>>明年的情况>>>>>>>");
		j.inc2(st);
		System.out.println("-------->");
		st.show();
	}

}
